package dataPool;

/**
 * 使用单例模式来维护线程池管理的类
 * Created by Administrator on 2018/6/14.
 */
public class PoolManager {
    private static class createPool{
        private static  MyPoolImpl myPool = new MyPoolImpl();
    }
    //JVM肯定只会创建一次内部类
    public  static  MyPoolImpl getInstance(){
        return  createPool.myPool;
    }

}
